package controllers;

import play.modules.gae.*;
import play.modules.gae.GAEInit;
import com.google.appengine.api.users.*;

public class Auth {

	public static boolean isLoggedIn() {
		return GAE.isLoggedIn();
	}
	public static String getEmail() {
		return GAE.getUser().getEmail();
	}
	public static User getUser() {
		return GAE.getUser();
	}

    public static void login(String action) {
        GAE.login(action);
    }

    public static void logout(String action) {
        GAE.logout(action);
    }

}